import Vue from 'vue'
import App from './App'
import store from './static/js/store/store.js';
import config from './static/js/config.js';
import VueI18n from 'vue-i18n';

Vue.use(VueI18n);
// 导入语言文件
import en from './common/locale/zh-hans.json' //中文
import vi from './common/locale/zh-vi.json' //越南语
import id from './common/locale/zh-id.json' //印尼语
import ms from './common/locale/zh-ms.json' // 马来西亚语
import th from './common/locale/zh-th.json' //泰语
import eng from './common/locale/zh-eng.json' //英语 （美国）
Vue.prototype.$config = config;
import * as http from './static/js/request.js';
Vue.prototype.$http = http;
// import AntiScreenshot from './common/antiScreenshot'

// AntiScreenshot.init()
import md5 from './static/js/md5.js';
Vue.prototype.$Md5 = md5;
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
//权限相关的判断
import {
	common
} from './static/js/mixin/common.js';
Vue.mixin(common);

// 挂载全局方法
import configs from "./common/config.js"
Vue.prototype.configs = configs
// import lib from "./common/lib.js"
// Vue.prototype.lib=lib
console.log(process.env.NODE_ENV, '---');
import request from "./common/request.js";
console.log('request');
Vue.prototype.$httpas = request;

Vue.prototype.$mbgColor = '#000'


Vue.config.productionTip = false
App.mpType = 'app'
let i18en = 'en'
const i18n = new VueI18n({
	locale: i18en, // 默认语言
	messages: {
		en,
		vi,
		id,
		ms,
		th,
		eng
	}
})
const app = new Vue({
	i18n,
	...App,
	store
})
app.$mount()